package com.ruoyi.behindOrder.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.behindOrder.mapper.YyyOrderMapper;
import com.ruoyi.behindOrder.domain.YyyOrder;
import com.ruoyi.behindOrder.service.IYyyOrderService;

/**
 * 订单总览Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class YyyOrderServiceImpl implements IYyyOrderService 
{
    @Autowired
    private YyyOrderMapper yyyOrderMapper;

    /**
     * 查询订单总览
     * 
     * @param orderId 订单总览主键
     * @return 订单总览
     */
    @Override
    public YyyOrder selectYyyOrderByOrderId(Long orderId)
    {
        return yyyOrderMapper.selectYyyOrderByOrderId(orderId);
    }

    /**
     * 查询订单总览列表
     * 
     * @param yyyOrder 订单总览
     * @return 订单总览
     */
    @Override
    public List<YyyOrder> selectYyyOrderList(YyyOrder yyyOrder)
    {
        return yyyOrderMapper.selectYyyOrderList(yyyOrder);
    }

    /**
     * 新增订单总览
     * 
     * @param yyyOrder 订单总览
     * @return 结果
     */
    @Override
    public int insertYyyOrder(YyyOrder yyyOrder)
    {
        return yyyOrderMapper.insertYyyOrder(yyyOrder);
    }

    /**
     * 修改订单总览
     * 
     * @param yyyOrder 订单总览
     * @return 结果
     */
    @Override
    public int updateYyyOrder(YyyOrder yyyOrder)
    {
        return yyyOrderMapper.updateYyyOrder(yyyOrder);
    }

    /**
     * 批量删除订单总览
     * 
     * @param orderIds 需要删除的订单总览主键
     * @return 结果
     */
    @Override
    public int deleteYyyOrderByOrderIds(Long[] orderIds)
    {
        return yyyOrderMapper.deleteYyyOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单总览信息
     * 
     * @param orderId 订单总览主键
     * @return 结果
     */
    @Override
    public int deleteYyyOrderByOrderId(Long orderId)
    {
        return yyyOrderMapper.deleteYyyOrderByOrderId(orderId);
    }
}
